<template>
    <div class="conn">
        <lay-card title="系统设置">
            <lay-field title="系统信息">
                <lay-row>
                    <lay-col md="12" class="tr"> 作者：</lay-col>
                    <lay-col md="12"> 兔子中医</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> platform:</lay-col>
                    <lay-col md="12"> {{process.platform}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> OS:</lay-col>
                    <lay-col md="12"> {{process.env.OS}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> APPDATA:</lay-col>
                    <lay-col md="12"> {{process.env.APPDATA}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> electron:</lay-col>
                    <lay-col md="12"> {{process.versions.electron}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> chrome:</lay-col>
                    <lay-col md="12"> {{process.versions.chrome}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> node:</lay-col>
                    <lay-col md="12"> {{process.versions.node}}</lay-col>
                </lay-row>
                <lay-row>
                    <lay-col md="12" class="tr"> openssl:</lay-col>
                    <lay-col md="12"> {{process.versions.openssl}}</lay-col>
                </lay-row>
            </lay-field>
        </lay-card>
    </div>
</template>
<script setup>
import {onMounted, ref} from "vue";
import {useStoreMain} from '../../store/storeindex.js';
const storeMain = useStoreMain();

// console.log(electron);
const process = ref(electron.process);
const handleClick = () => {
    $utilstoken.setStorage('ziyuanurl', storeMain.publicmain.ziyuanurl);
    storeMain.publicmain.configDialogShow = false;
    $utilstoken.removeStorage('ziyuanlist');
    storeMain.vedio.getZiyuanList();
}

onMounted(() => {
    storeMain.publicmain.ziyuanurl = $utilstoken.getStorage('ziyuanurl');
})
</script>
<style lang="scss" scoped>
.conn {
    padding: 10px;
    height: 100%;
    background-color: var(--base_bgcolor);
    overflow-y: auto;
}
</style>
